package com.lsk.task;

import com.aliyuncs.exceptions.ClientException;
import com.lsk.util.StsServiceSample;
import com.lsk.util.Syslog;


/**
 * OOS临时授权定时任务
 * Created by Administrator on 2017/9/21 0021.
 */
public class OssStsTask implements Runnable{
    static StsServiceSample stsServiceSample=new StsServiceSample();
    @Override
    public void run() {
        try {
            stsServiceSample.assumeRole();
        } catch (ClientException e) {
            Syslog.error(" 获取sts临时授权异常"+e);
        }
    }
}
